package com.spar.openprojects.shared.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.spar.openprojects.shared.Member;
import com.sql.database.IRowMapper;

public class MemberRowMapper implements IRowMapper {

	@Override
	public Member mapRow(ResultSet rs) throws SQLException {
		Member member = new Member();
		member.setId(rs.getInt("m.id"));
		member.setFirstName(rs.getString("m.first_name"));
		member.setLastName(rs.getString("m.last_name"));
		member.setNumber(rs.getString("m.number"));
		member.setEmail(rs.getString("m.email"));
		return member;
	}

}
